package com.woniuxy.hotel.api;

import com.woniuxy.common.Result;
import com.woniuxy.hotel.form.HotelForm;
import com.woniuxy.hotel.form.PolicyForm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author kevin kwok
 * @create 2021-05-24 16:47
 */
/*商家管理服务的接口*/
@FeignClient(value = "hotel-business",contextId = "management")
public interface HotelInfoManagement {
    /*给已经审核通过的酒店新增酒店展示信息*/
    @PostMapping("/hotelInfoDetails")
    public Result hotelInfoDetails(@RequestBody HotelForm hotelForm);

    /*酒店政策新增*/
    @PostMapping("/addHotelPolicy")
    public Result addHotelPolicy(@RequestBody PolicyForm policyForm);

    /*酒店政策查询*/
    @GetMapping("/queryHotelPolicy")
    public Result queryHotelPolicy(@RequestParam(value = "hotelName") String hotelName);

    /*酒店政策修改*/
    @PutMapping("/modifyHotelPolicy")
    public Result modifyHotelPolicy(@RequestBody PolicyForm policyForm);

    /*酒店资料修改*/
    @PutMapping("/modifyHotelInfo")
    public Result modifyHotelInfo(@RequestBody HotelForm hotelForm);

    /*酒店信息查询展示*/
    @GetMapping("/queryHotelInfo")
    public Result queryHotelInfo(@RequestParam(value = "hotelName") String hotelName);

    /*根据酒店不同的类型进行筛选*/
    @GetMapping("/queryHotelInfoByType")
    public Result queryHotelInfoByType(@RequestParam(value = "typeId") Integer typeId);

    /*根据酒店id删除这个酒店的信息*/
    @DeleteMapping("/deleteInfoById")
    public Result deleteInfoById(@RequestParam(value = "hotelId") Integer hotelId);

}
